home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mint110s / basepage.h < prev    next >
C/C++ Source or Header  |  1993-08-16  |  1KB  |  41 lines

  1. /*
  2.  *    BASEPAGE.H    Definition of the basepage structure.
  3.  */
  4.  
  5. #ifndef _BASEP_H
  6. #define    _BASEP_H
  7.  
  8. typedef struct basep {
  9.     long        p_lowtpa;    /* pointer to self (bottom of TPA) */
  10.     long        p_hitpa;    /* pointer to top of TPA + 1 */
  11.     long        p_tbase;    /* base of text segment */
  12.     long        p_tlen;        /* length of text segment */
  13.     long        p_dbase;    /* base of data segment */
  14.     long        p_dlen;        /* length of data segment */
  15.     long        p_bbase;    /* base of BSS segment */
  16.     long        p_blen;        /* length of BSS segment */
  17.     char        *p_dta;        /* pointer to current DTA */
  18.     struct basep    *p_parent;    /* pointer to parent's basepage */
  19.     long        p_flags;    /* memory usage flags */
  20.     char        *p_env;        /* pointer to environment string */
  21. /* Anything after this (except for p_cmdlin) is undocumented, reserved,
  22.  * subject to change, etc. -- user programs must NOT use!
  23.  */
  24.     char        p_devx[6];    /* real handles of the standard devices */
  25.     char        p_res2;        /* reserved */
  26.     char        p_defdrv;    /* default drv */
  27.     long        p_undef[17];    /* reserved space */
  28.     long        p_usp;        /* a fake USP to make dLibs programs happy */
  29.     char        p_cmdlin[128];    /* command line image */
  30. }    BASEPAGE;
  31.  
  32. #if defined(__TURBOC__) && !defined(__MINT__)
  33. # include <basepage.h>
  34. # define _base (BASEPAGE *)(_BasPag)
  35. #else
  36. /* pointer to our basepage, set by compiler startup code */
  37. extern    BASEPAGE    *_base;
  38. #endif
  39.  
  40. #endif /* _BASEP_H */
  41.